package day3;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

//测试流的转换 字节-->字符
public
class TestStreamChange {
    public static
    void main(String[] args) throws IOException {
        //字节流
        FileInputStream fis=new FileInputStream("D:\\IO\\testIO.txt");
        //转换为字符流
        InputStreamReader isr=new InputStreamReader(fis);
        //为字符流封装缓冲流
        BufferedReader br=new BufferedReader(isr);
        System.out.println(br.readLine());
        System.out.println(br.readLine());
    }
}
